package com.leyou.auth.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 授权远程接口
 */
@FeignClient("auth-service")
public interface AuthClient {
    /**
     * 服务token签发
     */
    @GetMapping("/authorization")
    public String authorization(@RequestParam("serviceName") String serviceName,
                                @RequestParam("secret")String secret);

}